#ifndef UTIL_CRC_H_
#define UTIL_CRC_H_

#include <stdint.h>

namespace fermat {

uint16_t crc16(const char *buf, int len, uint16_t old = 0);

uint32_t crc32(const char* s, int len, uint32_t old = ~0U);

uint64_t crc64(const char *s, int l, uint64_t old = 0);

}
#endif
